﻿<%@ Page Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/MainContent.Master" Inherits="System.Web.Mvc.ViewPage<MShop.Web.Models.RegisterModel>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
<div id="fullBox">
<div id="formOutBox">
  <div id="formTitle">
	 <div class="formTitleCard_c">新建用户</div>
	 <div class="formTitlRight">
	 <img src="/Content/back.png" width="16" height="16" border="0" align="middle" style="margin-right:3px;" />
	 <%: Html.ActionLink("返回", "Index") %>
	 </div>
  </div>
  <div id="formBox">
  <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true) %>
        <table width="100%" border="0" cellspacing="0" cellpadding="3" class="formTable">
              <tr>
                <td width="120"><%: Html.LabelFor(m => m.UserName) %>：</td>
                <td width="305px;"><%: Html.TextBoxFor(m => m.UserName,new { @class = "inputBox" }) %>
                    <%: Html.ValidationMessageFor(m => m.UserName) %></td>
				<td></td>
              </tr>
			  <tr>
                <td><%: Html.LabelFor(m => m.Email) %>：</td>
                <td><%: Html.TextBoxFor(m => m.Email,new { @class = "inputBox" }) %>
                    <%: Html.ValidationMessageFor(m => m.Email) %></td>
				<td></td>
			  </tr>
			  <tr>
                <td><%: Html.LabelFor(m => m.Password) %>：</td>
                <td><%: Html.PasswordFor(m => m.Password,new { @class = "inputBox" }) %>
                    <%: Html.ValidationMessageFor(m => m.Password) %></td>
				<td></td>
              </tr>
			  <tr>
                <td><%: Html.LabelFor(m => m.ConfirmPassword) %>：</td>
                <td><%: Html.PasswordFor(m => m.ConfirmPassword,new { @class = "inputBox" }) %>
                    <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %></td>
				<td></td>
              </tr> 

                <tr>
                <td><%: Html.LabelFor(m => m.RoleId) %>：</td>
                <td><%= this.RadioSet("roleid").Options(ViewData["roles"]  as IList<SelectListItem>)%>
                    <%: Html.ValidationMessageFor(m => m.RoleId)%></td>
				<td></td>
              </tr>
			  <tr>
                <td colspan="3" align="center"><input type="submit" value="创建账户" class="btn" /></td>
              </tr>
            </table>
		<% } %>
  </div>
</div>
</asp:Content>
